package com.test.beans.injects;


import xyz.lwm.lazycat.annotation.Around;
import xyz.lwm.lazycat.annotation.Bean;
import xyz.lwm.lazycat.annotation.Inject;

@Bean
public class InjectsService1 {

    @Inject
    private InjectsService1 me;

    @Inject
    private InjectsService2 injectsService2;

    @Around(InjectInvocationHandler.class)
    public void doSomething(){
        System.out.println("InjectsService1: " + injectsService2.getClass());
    }

    public void testAopSelf() {
        me.doSomething();
    }

}
